package wanghui.groovy_lib.UTILS

def void gitConfig(){
    // https方式存储账密信息
    def credentialHelper = sh script: '#!/bin/bash -e \n' + "echo -n `git config --global --get credential.helper`", returnStdout: true 
    if(credentialHelper == ''){
        sh 'git config --global credential.helper store'
    }
    def httpSslVerify = sh script: '#!/bin/bash -e \n' + "echo -n `git config --global --get http.sslVerify`", returnStdout: true 
    if(httpSslVerify == '' || httpSslVerify == 'true'){
        sh 'git config --global http.sslVerify "false"'
    }
}
